Convert to an ordinary lislΒΆ

L = A.tolist()

Convert an array to an ordinary list with the same items.

from array import *

AI = array('i', [1, 3, 5, 3, 7, 1, 9, 3])
print("Original array: " + str(AI))
# Original array: array('i', [1, 3, 5, 3, 7, 1, 9, 3])

L = AI.tolist()

print("Convert the said array to an ordinary list with the same items:")
print(L)
# [1, 3, 5, 3, 7, 1, 9, 3]

See also: https://www.w3resource.com/python-exercises/array/python-array-exercise-13.php